"""
@author: Sergiy Tsymbalyuk
"""

import logging

from repoze.what.plugins.pylonshq import ControllerProtector

from chowa.lib.site.crud import FlatCrudController
from hrms.lib.predicates import profile
from hrms.model.person import Child

log = logging.getLogger(__name__)

@ControllerProtector(profile())
class ChildrenController(FlatCrudController):
    __model__ = Child
    __columns__ = ['name', 'born']
    __edit_columns__ = ['employee', 'name', 'born', 'gender']
